import turtle                              #导入turtle

turtle.setup(width=0.6,height=0.6)         #画笔设置
turtle.pensize(5)
turtle.pencolor('red')
turtle.speed(3)
turtle.hideturtle()

turtle.penup()                             #左半边心
turtle.goto(0,150)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor('red')
turtle.setheading(90)
turtle.circle(100,extent=180)
turtle.circle(250,extent=78.5)

turtle.penup()                             #右半边心
turtle.goto(0,0)
turtle.goto(0,150)
turtle.pendown()
turtle.setheading(90)
turtle.circle(-100,extent=180)
turtle.circle(-250,extent=78.5)
turtle.end_fill()
turtle.penup()

turtle.goto(-165,-200)                     #教师节快乐
turtle.write('教师节快乐！',font=('宋体', 50, 'normal'))
turtle.done()